package com.reform.service.impl;

import com.reform.pojo.expert.ViewExpertLabel;
import com.reform.mapper.ViewExpertLabelMapper;
import com.reform.res.Result;
import com.reform.res.ResultCode;
import com.reform.service.IViewExpertLabelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

/**
 * <p>
 * VIEW 服务实现类
 * </p>
 *
 * @author mortale
 * @since 2021-08-13
 */
@Service
public class ViewExpertLabelServiceImpl extends ServiceImpl<ViewExpertLabelMapper, ViewExpertLabel> implements IViewExpertLabelService {

    @Autowired
    ViewExpertLabelMapper viewExpertLabelMapper;

    @Override
    public Result getExpertLabels() throws SQLException {
        return Result.success(ResultCode.SUCCESS, viewExpertLabelMapper.selectList(null));
    }
}
